package com.ruoyi.train.service.impl;

import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.train.domain.JyTrainingSchoolStaff;
import com.ruoyi.train.mapper.JyTrainingSchoolStaffMapper;
import com.ruoyi.train.service.IJyTrainingSchoolStaffService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 培训学校员工Service业务层处理
 *
 * @author aulbrother
 * @date 2024-04-06
 */
@Service
@RequiredArgsConstructor
public class JyTrainingSchoolStaffServiceImpl implements IJyTrainingSchoolStaffService {
    private final JyTrainingSchoolStaffMapper jyTrainingSchoolStaffMapper;

    /**
     * 查询培训学校员工
     *
     * @param id 培训学校员工主键
     * @return 培训学校员工
     */
    @Override
    public JyTrainingSchoolStaff selectJyTrainingSchoolStaffById(Long id) {
        return jyTrainingSchoolStaffMapper.selectJyTrainingSchoolStaffById(id);
    }

    /**
     * 查询培训学校员工列表
     *
     * @param jyTrainingSchoolStaff 培训学校员工
     * @return 培训学校员工
     */
    @Override
    public List<JyTrainingSchoolStaff> selectJyTrainingSchoolStaffList(JyTrainingSchoolStaff jyTrainingSchoolStaff) {
        return jyTrainingSchoolStaffMapper.selectJyTrainingSchoolStaffList(jyTrainingSchoolStaff);
    }
}
